package base;

/**
 * 项目名称：Demo01
 * 类 名 称：Test01
 * 类 描 述：TODO
 * 创建时间：2021/03/13 10:58
 * 创 建 人：XiaoCoder
 */
public class Test01 {
    public static void main(String[] args) {
        int a = 1;
        int b = 1;

        a = 2;
        System.out.println(a);
        System.out.println(b);

        TT t = new TT("T");
        TT t1 = t;
        t.setName("TT");
        System.out.println(t.getName());
        System.out.println(t1.getName());
        System.out.println(t1==t);


    }

}

class TT {
    private String name;

    public TT(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name1) {
        this.name = name1;
    }
}
